package com.etooling.pdm.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.etooling.pdm.dto.GoodsSpecsDTO;
import com.etooling.pdm.vo.GoodsSpecsStockRecordVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

@Mapper
public interface PdmMapper {


    IPage<Map<String, Object>> getGoodsSpecsList(@Param(Constants.WRAPPER) QueryWrapper<Map<String, Object>> query, Page<Map<String, Object>> returnPage);


    IPage<GoodsSpecsDTO> pageQueryGoodsSpecs(@Param(Constants.WRAPPER) QueryWrapper<GoodsSpecsDTO> queryWrapper, Page<GoodsSpecsDTO> page);


    IPage<Map<String, Object>> pageQueryStockRecords(@Param(Constants.WRAPPER) QueryWrapper<Map<String, Object>> queryWrapper, Page<Map<String, Object>> returnPage);
}
